package cn.itcast.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
@ResponseBody
public class testController {

	@RequestMapping("/testController.do")
	public Map<String, String> testController(){
	 HashMap<String, String> map = new HashMap<>();
	 map.put("name", "张三");
		
		return map;
	}
}
